using System;

namespace CStock
{
    public class RegExStructuresYahooREaltimeECN
	{
		

        string lastTrade;
        //string suffix;
        string tradetime;
        string bid;
        string ask;
        
		/// <summary>
		/// 
		/// </summary>
        public RegExStructuresYahooREaltimeECN()
		{
            //for instance http://finance.yahoo.com/q/ecn?s=A
            lastTrade = @"Last.Trade:</td><td.class=.yfnc_tabledata1.yfi_last_trade.><span.id=.yfs_l90_db.>(?<1>.*)</span></td></tr><tr><td.class=.yfnc_tablehead1.>Trade.Time:";
            lastTrade = @"yfs_l90_"; // + symbol
            lastTrade = @"yfi_last_trade.>(?<1>.*?)</td>";

            tradetime = @"yfnc_tabledata1.>(?<1>.*?)</td>";
            //tradetime = @"yfs_t50_";
            bid = @" datum_id=.b.0.>(?<1>.*?)</price>";
            //bid = @"datum_id=.b.0.>(?<1>.*?)</price></span>";
           
           
            
			
			
		}


        public string LastTrade
         {
             get
             {
                 return this.lastTrade;
             }
             set
             {
                 lastTrade = value;
             }

         }
        public string Tradetime
        {
            get
            {
                return this.tradetime;
            }
            set
            {
                tradetime = value;
            }

        }
        public string Bid
        {
            get
            {
                return this.bid;
            }
            set
            {
                bid = value;
            }

        }
        public string Ask
        {
            get
            {
                return this.ask;
            }
            set
            {
                ask = value;
            }

        }
        //public string Suffix
        //{
        //    get
        //    {
        //        return this.suffix;
        //    }
          

        //}
        

	}
}
